import Vue from 'vue'
import App from './App.vue'
import router from './router'
//element ui 样式
import '@/plugins/element.js'
//引入vuex  大仓库
import store from './store'
//注册全局组件
import Navigation from '@/components/Navigation'
import Carsousel from "@/components/Carousel";
import Paging from '@/components/Paging'
Vue.component(Navigation.name,Navigation)
Vue.component(Carsousel.name, Carsousel);
Vue.component(Paging.name, Paging);
//引入mock  模拟数据
import '@/mock/server.js'

//引入swiper样式  轮播图
import "swiper/css/swiper.css";

//引入所有api 请求   因为后面没用vuex
import * as $http from '@/api'

//图片懒加载
import VueLazyload from 'vue-lazyload'
import imgLang from '@/assets/images/R-C.png'
//注册
Vue.use(VueLazyload, {
  loading: imgLang
})

//引入表单校验插件
import "@/plugins/validate";
Vue.config.productionTip = false

let muvue=new Vue({
  beforeCreate() {
    Vue.prototype.$bus=this
    Vue.prototype.$http=$http
  },
  router,
  render: h => h(App),
  store
}).$mount('#app')
